<%@ page language="java" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="ww" uri="webwork"%>
<ww:bean name="'com.css.apps.base.common.provider.OrgQueryProvider'" id="OrgQueryProvider" />
<ww:bean name="'com.css.apps.base.dict.service.DictMan'" id="dictID" />
<ww:bean name="'com.css.util.RegexCheck'" id="regexCheck"/>
<style>
    select[class*="form-control"] {
        width: 90%;
    }
    textarea[class*="form-control"] {
        width: 95%;
        padding: 8px;
    }
</style>
<form class="form-horizontal form-validate" id="user_info_form">
    <input type="hidden" id="operFlag" name="operFlag" value="<ww:property value='operFlag'/>" />
    <input type="hidden" id="userId" name="userId" value="<ww:property value='userId'/>" />
    <input type="hidden" id="lableId" name="lableId" value="<ww:property value='lableId'/>" />
    <input type="hidden" id="myOrgIds" name="userInfoPageVo.orgIds" class="form-control" value="<ww:property value="userInfoPageVo.orgIds"/>" />
    <input type="hidden" id="uuid" name="userInfoPageVo.userInfoVo.uuid" value="<ww:property value='userInfoPageVo.userInfoVo.uuid'/>" />
    <input type="hidden" id="familyJsonStr" name="userInfoPageVo.userInfoVo.familyJsonStr" class="form-control"/>

    <div class="content">
        <div class="box box-primary">
            <div class="box-body " >
                <table class="table table-bordered editTable form-group-sm">
                    <thead>
                        <tr>
                            <th style="border-right: none;" colspan="1"></th>
                            <th style="border-right: none;border-left: none;"colspan="10">人员基本信息</th>
                            <th style="border-left: none;" colspan="1">
                                <ww:if test="!(userId==null || userId == '')"><a style="float: right;color: #0e0e0e;" title="点击导出简历审批表" href="exportUser.action?ids=<ww:property value='userId'/>"><i class='fa fa-cloud-upload' aria-hidden='true'></i></a></ww:if>
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                    <tr class="firstRow">
                            <td colspan="1" class="col-md-1"></td>
                            <td colspan="1" class="col-md-1"></td>
                            <td colspan="1" class="col-md-1"></td>
                            <td colspan="1" class="col-md-1"></td>
                            <td colspan="1" class="col-md-1"></td>
                            <td colspan="1" class="col-md-1"></td>
                            <td colspan="1" class="col-md-1"></td>
                            <td colspan="1" class="col-md-1"></td>
                            <td colspan="1" class="col-md-1"></td>
                            <td colspan="1" class="col-md-1"></td>
                            <td colspan="1" class="col-md-1"></td>
                            <td colspan="1" class="col-md-1"></td>
                        </tr>
                        <tr>
                            <td class="tdLable" colspan="2">姓名</td>
                            <td colspan="4">
                                <input  type="text" name="userInfoPageVo.userInfoVo.realName" class="form-control required"  value="<ww:property value='userInfoPageVo.userInfoVo.realName'/>">
                            </td>
                            <td class="tdLable" colspan="2">登录名</td>
                            <td colspan="4">
                                <input type="text" name="userInfoPageVo.userInfoVo.loginName" <%--<ww:if test="userInfoPageVo.userInfoVo.loginName !=null && userInfoPageVo.userInfoVo.loginName !=''">readonly</ww:if>--%> class="form-control"  value="<ww:property value='userInfoPageVo.userInfoVo.loginName'/>">
                                <%--<div class="Qtip">
                                    <i class="fa fa-question-circle fa-lg" aria-hidden="true"></i>
                                </div>
                                <div class="tipDiv">
                                    仅当需要指定当前用户为可登录用户时才须设置该项，默认登录密码为 123456
                                </div>--%>
                            </td>
                        </tr>
                        <tr>
                            <td class="tdLable" colspan="2">出生日期</td>
                            <td colspan="4">
                                <input type="text" class="Wdate form-control" name="userInfoPageVo.userInfoVo.birthday" readonly="readonly"
                                       onclick="WdatePicker({dateFmt:'yyyy-MM',maxDate:'%y-%M'})" value='<ww:property value="new java.text.SimpleDateFormat('yyyy-MM').format(userInfoPageVo.userInfoVo.birthday)"/>'>
                            </td>
                            <td class="tdLable" colspan="2">性别</td>
                            <td colspan="4">
                                <ww:iterator value="#dictID.getDictType('d_sex')">
                                    <label class="radio inline">
                                        <input class="form-control " type="radio" value="<ww:property value='code'/>" name="userInfoPageVo.userInfoVo.sex" style="margin-top: 3px;"
                                               <ww:if test="code.equals(userInfoPageVo.userInfoVo.sex)">checked="checked"</ww:if>><ww:property value="name"/>
                                    </label>
                                </ww:iterator>
                            </td>
                        </tr>
                        <tr>
                            <%--<td class="tdLable" colspan="2">人员类别</td>
                            <td colspan="4">
                                <input type="text" name="userInfoPageVo.userInfoVo.person_type" class="form-control"  value="<ww:property value='userInfoPageVo.userInfoVo.person_type'/>">
                            </td>--%>
                            <td class="tdLable" colspan="2">所属机构</td>
                            <td colspan="4">
                                <input type="text" name="myOrgName" id="myOrgName" class="form-control required" value='<ww:property value="#OrgQueryProvider.getOrgNames(userInfoPageVo.orgIds)"/>' onclick="showOrgTreeContent();" readonly style="cursor:pointer;"/>
                                <div id="myOrgTreeContent" style="float:left;position: absolute;display:none;width:28%;">
                                    <ul id="myOrgTree_<ww:property value='userId'/>" class="ztree" style="width: 100%;height: 230px;background:white;border:#e5e7ee solid 1px;overflow-x:auto;overflow-y:scroll;margin-top: 28px;"></ul>
                                </div>
                            </td>
                            <td class="tdLable" colspan="2">现任职务</td>
                            <td colspan="4">
                                <input type="text" name="userInfoPageVo.userInfoVo.current_duty" class="form-control"  value="<ww:property value='userInfoPageVo.userInfoVo.current_duty'/>">
                            </td>
                            <%--<td class="tdLable" colspan="2">身份证号</td>
                            <td colspan="4">
                                <input type="text" name="userInfoPageVo.userInfoVo.idcard" class="form-control"  value="<ww:property value='userInfoPageVo.userInfoVo.idcard'/>">
                            </td>--%>
                        </tr>
                        <%--<tr>
                            <td class="tdLable" colspan="2">联系人</td>
                            <td colspan="4">
                                <input type="text" name="userInfoPageVo.userInfoVo.contactor" class="form-control"  value="<ww:property value='userInfoPageVo.userInfoVo.contactor'/>">
                            </td>
                            <td class="tdLable" colspan="2">联系方式</td>
                            <td colspan="4">
                                <input type="text" name="userInfoPageVo.userInfoVo.contactphone" class="form-control"  value="<ww:property value='userInfoPageVo.userInfoVo.contactphone'/>">
                            </td>
                        </tr>--%>
                        <tr>
                            <td class="tdLable" colspan="2">籍贯</td>
                            <td colspan="4">
                                <input type="text" name="userInfoPageVo.userInfoVo.nativeplace" class="form-control" value="<ww:property value='userInfoPageVo.userInfoVo.nativeplace'/>" onclick="showCustomizedContent(this);" readonly style="cursor:pointer;"/>
                                <div class="customizedContent">
                                    <div class="itemFilter">
                                        <input type="text" style="width:88%; border-radius: 3px;" placeholder="输入关键字自动进行检索" oninput="itemFilter('d_area',this)">
                                    </div>
                                    <ul class="customizedSelect">
                                        <ww:iterator value="#dictID.getDictType('d_area')" id="data" status="data">
                                            <li id="<ww:property value='code'/>" class="customizedOption" onclick="chooseItem(this)"><ww:property value="name"/></li>
                                        </ww:iterator>
                                    </ul>
                                </div>
                            </td>
                            <td class="tdLable" colspan="2">出生地</td>
                            <%--<td colspan="4">--%>
                                <%--<ww:select attributes="class='form-control'" name="userInfoPageVo.userInfoVo.birthplace" value="userInfoPageVo.userInfoVo.birthplace" list="#dictID.getDictList('d_area', '请选择')"--%>
                                           <%--listKey="code" listValue="name">--%>
                                <%--</ww:select>--%>
                            <%--</td>--%>
                            <td colspan="4">
                                <input type="text" name="userInfoPageVo.userInfoVo.birthplace" class="form-control" value="<ww:property value='userInfoPageVo.userInfoVo.birthplace'/>" onclick="showCustomizedContent(this);" readonly style="cursor:pointer;"/>
                                <div class="customizedContent">
                                    <div class="itemFilter">
                                        <input type="text" style="width:88%; border-radius: 3px;" placeholder="输入关键字自动进行检索" oninput="itemFilter('d_area',this)">
                                    </div>
                                    <ul class="customizedSelect">
                                        <ww:iterator value="#dictID.getDictType('d_area')" id="data" status="data">
                                            <li id="<ww:property value='code'/>" class="customizedOption" onclick="chooseItem(this)"><ww:property value="name"/></li>
                                        </ww:iterator>
                                    </ul>
                                </div>
                            </td>
                           <%-- <td class="tdLable" colspan="2">成长地</td>
                            <td colspan="4">
                                <input type="text" name="userInfoPageVo.userInfoVo.liveplace" class="form-control"  value="<ww:property value='userInfoPageVo.userInfoVo.liveplace'/>">
                            </td>--%>
                        </tr>
                        <tr>
                            <td class="tdLable" colspan="2">民族</td>
                            <td colspan="4">
                                <input type="text" name="userInfoPageVo.userInfoVo.nation" class="form-control" value="<ww:property value='userInfoPageVo.userInfoVo.nation'/>" onclick="showCustomizedContent(this);" readonly style="cursor:pointer;"/>
                                <div class="customizedContent">
                                    <div class="itemFilter">
                                        <input type="text" style="width:88%; border-radius: 3px;" placeholder="输入关键字自动进行检索" oninput="itemFilter('d_nation',this)">
                                    </div>
                                    <ul class="customizedSelect">
                                        <ww:iterator value="#dictID.getDictType('d_nation')" id="data" status="data">
                                            <li id="<ww:property value='code'/>" class="customizedOption" onclick="chooseItem(this)"><ww:property value="name"/></li>
                                        </ww:iterator>
                                    </ul>
                                </div>
                            </td>
                            <td class="tdLable" colspan="2">健康状况</td>
                            <td colspan="4">
                                <ww:select attributes="class='form-control'" name="userInfoPageVo.userInfoVo.health" value="userInfoPageVo.userInfoVo.health" list="#dictID.getDictList('d_health', '请选择')"
                                           listKey="code" listValue="name">
                                </ww:select>
                            </td>
                        </tr>
                        <tr>
                            <td class="tdLable" colspan="2">入党时间</td>
                            <td colspan="4">
                                <input type="text" class="Wdate form-control" name="userInfoPageVo.userInfoVo.joinpartytime" readonly="readonly"
                                       onclick="WdatePicker({dateFmt:'yyyy-MM',maxDate:'%y-%M'})" value='<ww:property value="new java.text.SimpleDateFormat('yyyy-MM').format(userInfoPageVo.userInfoVo.joinpartytime)"/>'>
                            </td>
                            <td class="tdLable" colspan="2">参加工作时间</td>
                            <td colspan="4">
                                <input type="text" class="Wdate form-control" name="userInfoPageVo.userInfoVo.joinworktime" readonly="readonly"
                                       onclick="WdatePicker({dateFmt:'yyyy-MM',maxDate:'%y-%M'})" value='<ww:property value="new java.text.SimpleDateFormat('yyyy-MM').format(userInfoPageVo.userInfoVo.joinworktime)"/>'>
                            </td>
                            <%--<td class="tdLable" colspan="2">入党时间文字</td>
                            <td colspan="4">
                                <input type="text" name="userInfoPageVo.userInfoVo.joinpartycode" class="form-control"  value="<ww:property value='userInfoPageVo.userInfoVo.joinpartycode'/>">
                            </td>--%>
                        </tr>
                        <%--<tr>
                            <td class="tdLable" colspan="2">政治面貌</td>
                            <td colspan="4">
                                <input type="text" name="userInfoPageVo.userInfoVo.political_landscape" class="form-control"  value="<ww:property value='userInfoPageVo.userInfoVo.political_landscape'/>">
                            </td>
                        </tr>--%>
                        <%--<tr>
                            <td class="tdLable" colspan="2">第二党派</td>
                            <td colspan="4">
                                <input type="text" name="userInfoPageVo.userInfoVo.secondparty" class="form-control"  value="<ww:property value='userInfoPageVo.userInfoVo.secondparty'/>">
                            </td>
                            <td class="tdLable" colspan="2">第三党派</td>
                            <td colspan="4">
                                <input type="text" name="userInfoPageVo.userInfoVo.thirdparty" class="form-control"  value="<ww:property value='userInfoPageVo.userInfoVo.thirdparty'/>">
                            </td>
                        </tr>--%>
                       <%-- <tr>
                            <td class="tdLable" colspan="2">管理类别</td>
                            <td colspan="4">
                                <input type="text" name="userInfoPageVo.userInfoVo.manager_type" class="form-control"  value="<ww:property value='userInfoPageVo.userInfoVo.manager_type'/>">
                            </td>
                            <td class="tdLable" colspan="2">人员管理状态</td>
                            <td colspan="4">
                                <input type="text" name="userInfoPageVo.userInfoVo.manage_state" class="form-control"  value="<ww:property value='userInfoPageVo.userInfoVo.manage_state'/>">
                            </td>
                        </tr>--%>
                        <tr>
                            <td class="tdLable" colspan="2">专业技术职务</td>
                            <td colspan="4">
                                <input type="text" name="userInfoPageVo.userInfoVo.professiontech_duty" class="form-control" value="<ww:property value='userInfoPageVo.userInfoVo.professiontech_duty'/>" onclick="showCustomizedContent(this);" readonly style="cursor:pointer;"/>
                                <div class="customizedContent">
                                    <div class="itemFilter">
                                        <input type="text" style="width:88%; border-radius: 3px;" placeholder="输入关键字自动进行检索" oninput="itemFilter('d_professionalTechnicalDuty',this)">
                                    </div>
                                    <ul class="customizedSelect">
                                        <ww:iterator value="#dictID.getDictType('d_professionalTechnicalDuty')" id="data" status="data">
                                            <li id="<ww:property value='code'/>" class="customizedOption" onclick="chooseItem(this)"><ww:property value="name"/></li>
                                        </ww:iterator>
                                    </ul>
                                </div>
                            </td>
                            <td class="tdLable" colspan="2">熟悉专业有何特长</td>
                            <td colspan="4">
                                <input type="text" name="userInfoPageVo.userInfoVo.skill" class="form-control"  value="<ww:property value='userInfoPageVo.userInfoVo.skill'/>">
                            </td>
                        </tr>
                        <tr>
                            <td class="tdLable" colspan="2">学位、学历（全日制）</td>
                            <td colspan="4">
                                <input type="text" name="userInfoPageVo.userInfoVo.full_time_education" class="form-control"  value="<ww:property value='userInfoPageVo.userInfoVo.full_time_education'/>">
                            </td>
                            <td class="tdLable" colspan="2">毕业院校、专业（全日制）</td>
                            <td colspan="4">
                                <input type="text" name="userInfoPageVo.userInfoVo.full_time_school_major" class="form-control"  value="<ww:property value='userInfoPageVo.userInfoVo.full_time_school_major'/>">
                            </td>
                        </tr>
                        <tr>
                            <td class="tdLable" colspan="2">学位、学历（在职）</td>
                            <td colspan="4">
                                <input type="text" name="userInfoPageVo.userInfoVo.on_the_job_education" class="form-control"  value="<ww:property value='userInfoPageVo.userInfoVo.on_the_job_education'/>">
                            </td>
                            <td class="tdLable" colspan="2">毕业院校、专业（在职）</td>
                            <td colspan="4">
                                <input type="text" name="userInfoPageVo.userInfoVo.on_the_job_school_major" class="form-control"  value="<ww:property value='userInfoPageVo.userInfoVo.on_the_job_school_major'/>">
                            </td>
                        </tr>
                        <tr>
                            <td class="tdLable" colspan="2">简历</td>
                            <td colspan="10">
                                <textarea  name="userInfoPageVo.userInfoVo.resume" rows="5" cols="10" class="form-control" ><ww:property value="#regexCheck.TagReverse(userInfoPageVo.userInfoVo.resume)" /></textarea>
                            </td>
                        </tr>
                        <tr>
                            <td class="tdLable" colspan="2">奖罚情况</td>
                            <td colspan="10">
                                <textarea  name="userInfoPageVo.userInfoVo.reward_and_punish" rows="5" cols="10" class="form-control" ><ww:property value="#regexCheck.TagReverse(userInfoPageVo.userInfoVo.reward_and_punish)" /></textarea>
                            </td>
                        </tr>
                        <tr>
                            <td class="tdLable" colspan="2">年度考核结果</td>
                            <td colspan="10">
                                <textarea  name="userInfoPageVo.userInfoVo.examine_conclusion" rows="5" cols="10" class="form-control" ><ww:property value="#regexCheck.TagReverse(userInfoPageVo.userInfoVo.examine_conclusion)" /></textarea>
                            </td>
                        </tr>
                        <jsp:include page="userinfofamily.jsp"></jsp:include>
                        <tr>
                            <td class="tdLable" colspan="2">备注</td>
                            <td colspan="10">
                                <textarea  name="userInfoPageVo.userInfoVo.remark" rows="5" cols="10" class="form-control" ><ww:property value="userInfoPageVo.userInfoVo.remark" /></textarea>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <div class="operBtn">
                    <button id="bc_button" class="btn green" type="button" onclick="save('<ww:property value="operFlag"/>','lable','user_info_form','<ww:property value="lableId"/>','<ww:property value="userId"/>');"><i class="fa fa-save" aria-hidden="true"></i>&nbsp;保存</button>
                    <button class="btn" type="button" onclick="closeTab();"><i class="fa fa-times-circle-o" aria-hidden="true"></i>&nbsp;关闭</button>
                </div>
            </div>
        </div>
    </div>
</form>
<script>
    var getuser_zNodes = <ww:property value="tree" />;
    using('tree',function(){
        $.fn.zTree.init($("#myOrgTree"+"_<ww:property value='userId'/>"), getuser_setting, getuser_zNodes);
    });
</script>